package demo1;

public class Test {
    public static void main1(String[] args) {
        Cat cat = new Cat();
        cat.name="小花";
        cat.age=2;
        cat.eat();

        Dog dog = new Dog();
        dog.name = "旺财";
        dog.age = 3;
        dog.eat();
    }
}
